###########1.正则匹配
import re
s = '''
rootheloo:world=hiroot
admin-pythonadmin;asiaadmin
asiahubeiasiahainanasia
'''
strArr = s.split("\n")
for arr in strArr:
    print(arr)
r1 = r'(r..t).*\1'
r2 = r'(a...n).*\1'
r3 = r'(a..a).*\1'
reArr = [r1, r2, r3]
for arr in strArr:
    if not arr:
        strArr.remove(arr)

for i in range(len(strArr)):
    res = re.match(reArr[i], strArr[i])
    if res:
        print(res.group())
